package cj.web.admin.domain;
/*
 *  
 *  
*/
import java.io.Serializable;

/**
 * 广告
 */
public class Advertisement extends DataTablePage implements Serializable {

    protected Integer id;
	protected Integer columnsId;
	protected String columnsName;
	protected String title;
	protected String carouselImage;
	protected String content;
	protected Integer releaseState;
	protected String releaseAt;
	protected String isOuterLink;
	protected String stickAt;
	protected Integer pvNum;
	protected Integer orderNum;
	protected Integer deleteFlag;
	protected String createUser;
	protected String createAt;
	protected String updateUser;
	protected String updateAt;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getColumnsId() {
		return columnsId;
	}
	public void setColumnsId(Integer columnsId) {
		this.columnsId = columnsId;
	}
	public String getColumnsName() {
		return columnsName;
	}
	public void setColumnsName(String columnsName) {
		this.columnsName = columnsName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCarouselImage() {
		return carouselImage;
	}
	public void setCarouselImage(String carouselImage) {
		this.carouselImage = carouselImage;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getReleaseState() {
		return releaseState;
	}
	public void setReleaseState(Integer releaseState) {
		this.releaseState = releaseState;
	}
	public String getReleaseAt() {
		return releaseAt;
	}
	public void setReleaseAt(String releaseAt) {
		this.releaseAt = releaseAt;
	}
	public String getIsOuterLink() {
		return isOuterLink;
	}
	public void setIsOuterLink(String isOuterLink) {
		this.isOuterLink = isOuterLink;
	}
	public String getStickAt() {
		return stickAt;
	}
	public void setStickAt(String stickAt) {
		this.stickAt = stickAt;
	}
	public Integer getPvNum() {
		return pvNum;
	}
	public void setPvNum(Integer pvNum) {
		this.pvNum = pvNum;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateAt() {
		return createAt;
	}
	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((carouselImage == null) ? 0 : carouselImage.hashCode());
		result = prime * result
				+ ((columnsId == null) ? 0 : columnsId.hashCode());
		result = prime * result
				+ ((columnsName == null) ? 0 : columnsName.hashCode());
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result
				+ ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result
				+ ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result
				+ ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((isOuterLink == null) ? 0 : isOuterLink.hashCode());
		result = prime * result
				+ ((orderNum == null) ? 0 : orderNum.hashCode());
		result = prime * result + ((pvNum == null) ? 0 : pvNum.hashCode());
		result = prime * result
				+ ((releaseAt == null) ? 0 : releaseAt.hashCode());
		result = prime * result
				+ ((releaseState == null) ? 0 : releaseState.hashCode());
		result = prime * result + ((stickAt == null) ? 0 : stickAt.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result
				+ ((updateAt == null) ? 0 : updateAt.hashCode());
		result = prime * result
				+ ((updateUser == null) ? 0 : updateUser.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Advertisement other = (Advertisement) obj;
		if (carouselImage == null) {
			if (other.carouselImage != null)
				return false;
		} else if (!carouselImage.equals(other.carouselImage))
			return false;
		if (columnsId == null) {
			if (other.columnsId != null)
				return false;
		} else if (!columnsId.equals(other.columnsId))
			return false;
		if (columnsName == null) {
			if (other.columnsName != null)
				return false;
		} else if (!columnsName.equals(other.columnsName))
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (isOuterLink == null) {
			if (other.isOuterLink != null)
				return false;
		} else if (!isOuterLink.equals(other.isOuterLink))
			return false;
		if (orderNum == null) {
			if (other.orderNum != null)
				return false;
		} else if (!orderNum.equals(other.orderNum))
			return false;
		if (pvNum == null) {
			if (other.pvNum != null)
				return false;
		} else if (!pvNum.equals(other.pvNum))
			return false;
		if (releaseAt == null) {
			if (other.releaseAt != null)
				return false;
		} else if (!releaseAt.equals(other.releaseAt))
			return false;
		if (releaseState == null) {
			if (other.releaseState != null)
				return false;
		} else if (!releaseState.equals(other.releaseState))
			return false;
		if (stickAt == null) {
			if (other.stickAt != null)
				return false;
		} else if (!stickAt.equals(other.stickAt))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (updateAt == null) {
			if (other.updateAt != null)
				return false;
		} else if (!updateAt.equals(other.updateAt))
			return false;
		if (updateUser == null) {
			if (other.updateUser != null)
				return false;
		} else if (!updateUser.equals(other.updateUser))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Advertisement [id=").append(id).append(", columnsId=")
				.append(columnsId).append(", columnsName=").append(columnsName)
				.append(", title=").append(title).append(", carouselImage=")
				.append(carouselImage).append(", content=").append(content)
				.append(", releaseState=").append(releaseState)
				.append(", releaseAt=").append(releaseAt)
				.append(", isOuterLink=").append(isOuterLink)
				.append(", stickAt=").append(stickAt).append(", pvNum=")
				.append(pvNum).append(", orderNum=").append(orderNum)
				.append(", deleteFlag=").append(deleteFlag)
				.append(", createUser=").append(createUser)
				.append(", createAt=").append(createAt).append(", updateUser=")
				.append(updateUser).append(", updateAt=").append(updateAt)
				.append("]");
		return builder.toString();
	}
}